Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct slot for COUNTKEYSINSLOT command #3327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khasanovbi
Copy link

No description provided.

@ndyakov ndyakov self-requested a review March 31, 2025 09:23
Copy link
Collaborator

@ndyakov ndyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khasanovbi thank you for the contribution! Are there other commands that need to be executed on the args[2] slot? If so, let's prepare a slice and check if the arg[1] is in this list. Also, let's add tests for the change.

@khasanovbi khasanovbi force-pushed the count_keys_in_slot branch from 0c0aa56 to bb7c519 Compare April 8, 2025 00:52
@khasanovbi
Copy link
Author

Hi @ndyakov I'm checked other commands in docs and don't think that there are other commands that should use slot from command arg.

About the tests, I found ClusterGetKeysInSlot, ClusterCountKeysInSlot tests in osscluster_test.go only.
Can you tell me if this will not be enough and which cases you suggest to test?

@ndyakov
Copy link
Collaborator

ndyakov commented Apr 10, 2025

Hey @khasanovbi , I would expect to see a unit test for cmdSlot rather than an integration test (like the ones you probably saw in osscluster_test.go).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants